package com.dayu.behavior.chain;

public class ThridApprover extends Approver{

    public ThridApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest purchaseRequest) {
        if(purchaseRequest.getPrice() >= 10000 ){
            System.out.println("金额："+purchaseRequest.getPrice()+",被"+this.name+"处理");
        }else {
            return;
        }
    }
}
